/*
 * CotizadorAboutBox.java
 */

package com.tubosmonterrey.cotizador.paneles;


import org.jdesktop.application.Action;

public class JDiagProducto extends javax.swing.JDialog {

    public JDiagProducto(java.awt.Frame parent) {
        super(parent);
        initComponents();
        getRootPane().setDefaultButton(btnCerrar);
    }

    @Action public void closeAboutBox() {
        dispose();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnCerrar = new javax.swing.JButton();
        javax.swing.JLabel lblProductos = new javax.swing.JLabel();
        javax.swing.JLabel lblBusqueda = new javax.swing.JLabel();
        javax.swing.JLabel imageLabel = new javax.swing.JLabel();
        btnAceptar = new javax.swing.JButton();
        txtBusqueda = new javax.swing.JTextField();
        pnlDatos = new javax.swing.JPanel();
        scDatos = new javax.swing.JScrollPane();
        lstDatos = new javax.swing.JList();
        javax.swing.JLabel lblExistencia = new javax.swing.JLabel();
        javax.swing.JLabel lblCantida = new javax.swing.JLabel();
        txtExistencia = new javax.swing.JTextField();
        txtCantida = new javax.swing.JTextField();
        javax.swing.JLabel lblDescuento = new javax.swing.JLabel();
        txtDescuento = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.tubosmonterrey.cotizador.CotizadorApp.class).getContext().getResourceMap(JDiagProducto.class);
        setTitle(resourceMap.getString("title")); // NOI18N
        setModal(true);
        setName("aboutBox"); // NOI18N
        setResizable(false);

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.tubosmonterrey.cotizador.CotizadorApp.class).getContext().getActionMap(JDiagProducto.class, this);
        btnCerrar.setAction(actionMap.get("cerrar")); // NOI18N
        btnCerrar.setName("btnCerrar"); // NOI18N

        lblProductos.setFont(lblProductos.getFont().deriveFont(lblProductos.getFont().getStyle() | java.awt.Font.BOLD, lblProductos.getFont().getSize()+4));
        lblProductos.setText(resourceMap.getString("Application.title")); // NOI18N
        lblProductos.setName("lblProductos"); // NOI18N

        lblBusqueda.setIcon(resourceMap.getIcon("lblBusqueda.icon")); // NOI18N
        lblBusqueda.setLabelFor(txtBusqueda);
        lblBusqueda.setText(resourceMap.getString("lblBusqueda.text")); // NOI18N
        lblBusqueda.setName("lblBusqueda"); // NOI18N

        imageLabel.setIcon(resourceMap.getIcon("imageLabel.icon")); // NOI18N
        imageLabel.setName("imageLabel"); // NOI18N

        btnAceptar.setAction(actionMap.get("aceptar")); // NOI18N
        btnAceptar.setName("btnAceptar"); // NOI18N

        txtBusqueda.setText(resourceMap.getString("txtBusqueda.text")); // NOI18N
        txtBusqueda.setName("txtBusqueda"); // NOI18N

        pnlDatos.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("pnlDatos.border.title"))); // NOI18N
        pnlDatos.setName("pnlDatos"); // NOI18N

        scDatos.setName("scDatos"); // NOI18N

        lstDatos.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        lstDatos.setName("lstDatos"); // NOI18N
        scDatos.setViewportView(lstDatos);

        lblExistencia.setFont(lblExistencia.getFont().deriveFont(lblExistencia.getFont().getStyle() | java.awt.Font.BOLD));
        lblExistencia.setLabelFor(txtExistencia);
        lblExistencia.setText(resourceMap.getString("lblExistencia.text")); // NOI18N
        lblExistencia.setName("lblExistencia"); // NOI18N

        lblCantida.setFont(lblCantida.getFont().deriveFont(lblCantida.getFont().getStyle() | java.awt.Font.BOLD));
        lblCantida.setLabelFor(txtCantida);
        lblCantida.setText(resourceMap.getString("lblCantida.text")); // NOI18N
        lblCantida.setName("lblCantida"); // NOI18N

        txtExistencia.setEditable(false);
        txtExistencia.setText(resourceMap.getString("txtExistencia.text")); // NOI18N
        txtExistencia.setName("txtExistencia"); // NOI18N

        txtCantida.setText(resourceMap.getString("txtCantida.text")); // NOI18N
        txtCantida.setName("txtCantida"); // NOI18N

        lblDescuento.setFont(lblDescuento.getFont().deriveFont(lblDescuento.getFont().getStyle() | java.awt.Font.BOLD));
        lblDescuento.setLabelFor(txtDescuento);
        lblDescuento.setText(resourceMap.getString("lblDescuento.text")); // NOI18N
        lblDescuento.setName("lblDescuento"); // NOI18N

        txtDescuento.setName("txtDescuento"); // NOI18N

        javax.swing.GroupLayout pnlDatosLayout = new javax.swing.GroupLayout(pnlDatos);
        pnlDatos.setLayout(pnlDatosLayout);
        pnlDatosLayout.setHorizontalGroup(
            pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblExistencia)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtExistencia, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(lblCantida)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtCantida, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblDescuento)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtDescuento, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(27, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosLayout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(scDatos, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
                .addGap(25, 25, 25))
        );
        pnlDatosLayout.setVerticalGroup(
            pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(scDatos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(pnlDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblExistencia)
                    .addComponent(txtExistencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCantida)
                    .addComponent(txtCantida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDescuento)
                    .addComponent(txtDescuento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(imageLabel)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(231, 231, 231)
                        .addComponent(lblProductos))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 343, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnCerrar, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btnAceptar))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lblBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 417, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(pnlDatos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(imageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 435, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addComponent(lblProductos)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtBusqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnlDatos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(btnCerrar)
                        .addComponent(btnAceptar))
                    .addComponent(jLabel1))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    @Action
    public void aceptar() {
    }

    @Action
    public void cerrar() {
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnCerrar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JList lstDatos;
    private javax.swing.JPanel pnlDatos;
    private javax.swing.JScrollPane scDatos;
    private javax.swing.JTextField txtBusqueda;
    private javax.swing.JTextField txtCantida;
    private javax.swing.JTextField txtDescuento;
    private javax.swing.JTextField txtExistencia;
    // End of variables declaration//GEN-END:variables
    
}
